﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCUserRole.cs
// project ：YunCMS
// Build time：2012-09-22
// modify:
// description:
// ===================================================================
using System;
using System.Collections.Generic;
namespace YunCMS.Model
{
	/// <summary>
	///YCUserRole Model
	/// </summary>
	[Serializable]
	public class YCUserRole
	{
		#region 
		private int _id;
		private string _name = String.Empty;
		private string _note = String.Empty;
		private string _displayname = String.Empty;
		private int _type;
        private IList<YCUserRoleActions> _actions;
		#endregion
		
		#region 
		///<summary>
		///Constructor
		///</summary>
		public YCUserRole()
		{
		}
		///<summary>
		///Constructor
		///</summary>
		public YCUserRole
		(
			int id,
			string name,
			string note,
			string displayname,
			int type
		)
		{
			_id          = id;
			_name        = name;
			_note        = note;
			_displayname = displayname;
			_type        = type;
			
		}
		#endregion
		
		#region 
		
		///<summary>
		///ID
		///</summary>
		public int ID
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///Name
		///</summary>
		public string Name
		{
			get {return _name;}
			set {_name = value;}
		}

		///<summary>
		///Note
		///</summary>
		public string Note
		{
			get {return _note;}
			set {_note = value;}
		}

		///<summary>
		///Display name(in dropdown etc.)
		///</summary>
		public string DisplayName
		{
			get {return _displayname;}
			set {_displayname = value;}
		}

		///<summary>
		///Type
		///</summary>
		public int Type
		{
			get {return _type;}
			set {_type = value;}
		}

        public IList<YCUserRoleActions> Actions
        {
            get { return _actions; }
            set { _actions = value; }
        }
	
		#endregion	
	}
}



